/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.neu.nutrons.bots.logomotion;

import edu.wpi.first.wpilibj.*;

/**
 *
 * @author NUTRONS_PROGRAMMING
 */
public class OperatorController {
    Joystick stick = new Joystick(1);
    Robot bot;

    OperatorController(Robot bot){
        this.bot = bot;
    }

    void handle(){
        if(stick.getRawButton(1)){
            bot.elev.setCommand(Elevator.EC_HOME);
        }
        if(stick.getRawButton(2)){
            bot.elev.setCommand(Elevator.EC_LOW);
        }
        if(stick.getRawButton(3)){
            bot.elev.setCommand(Elevator.EC_MID);
        }
        if(stick.getRawButton(4)){
            bot.elev.setCommand(Elevator.EC_HIGH);
        }

        bot.handle();
    }
}
